home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / ewl / ewl_calendar.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  1KB  |  50 lines

  1. #ifndef __EWL_CALENDAR_H__
  2. #define __EWL_CALENDAR_H__
  3.  
  4. /**
  5.  * @file ewl_calendar.h
  6.  * @defgroup Ewl_Calendar Calendar: The EWL Calendar Widget
  7.  * @brief Defines the Ewl_Calendar class  
  8.  * Defined the Ewl_Calendar class, allowing selection of a day in time
  9.  *
  10.  */
  11.  
  12. /** 
  13.  * @themekey /calendar/file
  14.  * @themekey /calendar/group
  15.  */
  16.  
  17. typedef struct Ewl_Calendar Ewl_Calendar;
  18.  
  19. /**
  20.  * @def EWL_CALENDAR(calendar)
  21.  * Typecast a pointer to an Ewl_Calendar pointer
  22.  */
  23. #define EWL_CALENDAR(calendar) ((Ewl_Calendar *) calendar)
  24.  
  25. /** 
  26.  * @struct Ewl_Calendar
  27.  * Inherits from an Ewl_Box to provide a calendar widget
  28.  * Layout is either free-form, or auto-arranged to a grid.
  29.  */
  30. struct Ewl_Calendar
  31. {
  32.     Ewl_Box    box; /**< Inherit from Ewl_Box */
  33.  
  34.     int cur_day;
  35.     int cur_month;
  36.     int cur_year;
  37.     Ewl_Widget *grid;
  38.     Ewl_Widget *month_label;
  39. };
  40.  
  41. Ewl_Widget    *ewl_calendar_new(void);
  42. int         ewl_calendar_init(Ewl_Calendar *calendar);
  43. char *          ewl_calendar_ascii_time_get(Ewl_Calendar *cal);
  44. int          ewl_calendar_day_get(Ewl_Calendar *c);
  45. int          ewl_calendar_month_get(Ewl_Calendar *c);
  46. int          ewl_calendar_year_get(Ewl_Calendar *c);
  47.  
  48. #endif
  49.  
  50.